package com.moli.lumpSugar.websocket.service;

import com.moli.lumpSugar.common.domain.dto.WSBaseResp;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;

public interface WebSocketService {
    public void handleLoginReq(Channel channel);

    void connect(ChannelHandlerContext ctx);

    void userOffLine(Channel channel);

    void scanLoginSuccess(Integer code, Long uid);

    void scanSuccess(Integer code);

    void authorizeReq(Channel channel, String token);

    void sendAllOnlineUser(WSBaseResp<?> buildBlackUserMsg);

    void sendToUid(WSBaseResp<?> wsBaseResp, Long uid);
}
